package edu.wata.service;

import java.util.ArrayList;
import java.util.List;

import edu.wata.dao.OrderDao;
import edu.wata.domain.Order;

public class OrderService {
	private OrderDao od = new OrderDao();

	public List<Order> queryName(String userName) {
		List<Order> list = new ArrayList<>();
		list = od.queryName(userName);
		return list;
	}

	public int deleteTicket(String userName, String trainId) {
		return od.deleteTicket(userName, trainId);
	}
}
